home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
DTP
/
A-F
/
CoolBlendsXT.cpt
/
CoolBlendsXT
/
Cool Blends.rsrc
/
HEDR_20000
< prev
next >
Wrap
Text File
|
1992-06-05
|
2KB
|
51 lines
userdict/xbldct 33 dict dup begin put
/setpacking where dup{exch pop currentpacking exch true setpacking}if
/@1 0 def/@2 0 def
/c0 0 def/m0 0 def/y0 0 def/k0 0 def
/c1 0 def/m1 0 def/y1 0 def/k1 0 def
/cstp 0 def/mstp 0 def/ystp 0 def/kstp 0 def
/docbl 0 def
/blf 0 def
/blstp 0 def
/blw 0 def
/minblnd 16 def
/mtx matrix def
/B{bind def}bind def
/X{exch def}B
/m/moveto load def
/l/lineto load def
/rl/rlineto load def
/p2{pop pop}B
/p3{pop pop pop}B
/p4{pop pop pop pop}B
/calcbnd{72 72 mtx defaultmatrix dtransform abs exch abs 2 copy lt{exch}if
pop/languagelevel where{pop languagelevel}{1}ifelse 2 ge{pop 256}
{/currentcolorscreen where{pop currentcolorscreen p2 3
{3 index 2 copy lt{exch}if 5 1 roll p4}repeat}{currentscreen p2}ifelse
div dup mul round cvi 15 add 16 idiv dup 1 lt{pop 1}if
16 mul dup 256 gt{pop 256}if}ifelse minblnd 2 copy lt{exch}if pop/maxblnd X}B
/blar[
{dup neg -128 m 0 256 rl dup add 0 rl 0 -256 rl}bind
{dup neg dup m dup add 0 1 index rl dup 0 rl 0 exch neg rl}bind
{dup neg dup 0 exch m 0 l dup 0 exch l 0 l}bind
{0 0 3 -1 roll 0 360 arc}bind
{dup mul dup add sqrt 0 0 3 -1 roll 0 360 arc}bind
]def
/xblnd{/docbl X/blf X docbl{/k1 X/y1 X/m1 X/c1 X/k0 X/y0 X/m0 X/c0 X}{/k1 X/k0 X}ifelse
k1 k0/@1 X/@2 X docbl{@2 @1 sub abs c1 c0 sub abs 2 copy lt
{exch c1 c0/@1 X/@2 X}if pop m1 m0 sub abs 2 copy lt
{exch m1 m0/@1 X/@2 X}if pop y1 y0 sub abs lt{y1 y0/@1 X/@2 X}if}if
@1 @2 docbl{1 exch sub exch 1 exch sub}if 2 copy lt{exch}if
sub/blstp exch/maxblnd where{pop}{calcbnd}ifelse maxblnd mul round cvi def
/blw 128 blstp 1 add div def/kstp k1 k0 sub blstp div def
docbl{/cstp c1 c0 sub blstp div def/mstp m1 m0 sub blstp div def
/ystp y1 y0 sub blstp div def}if gsave 128 128 translate newpath
docbl{c0 m0 y0 k0 setcmykcolor}{k0 setgray}ifelse 128 blar 1 get exec fill
blw 128 blar blf get blstp 1 add
docbl{{c0 m0 y0 k0 setcmykcolor 2 copy exec fill exch 2 index sub exch
/c0 c0 cstp add def/m0 m0 mstp add def/y0 y0 ystp add def/k0 k0 kstp add def}repeat}
{{k0 setgray 2 copy exec fill exch 2 index sub exch/k0 k0 kstp add def}repeat}ifelse
p3 grestore}B
{setpacking}if
end